{{extend 'layout.html'}}
<style>
    div.legal {
        height:15em;
        width:40em;
        overflow:auto;
        margin:2em;
        padding:1em;
        border-color:black;
        border-width:2px;
        border-style:solid;
        background-color:#ccffff;
        }
</style>
<div id=pagehelpcontent class=hidden>
<h3><strong>{{=T("Page Help")}}</strong></h3>  
<p>{{=T("This page handles registration, logins, lost passwords etc.")}}</p>
</div>
<h2>{{=request.args(0).replace('_',' ').capitalize()}}</h2>
{{=form}}
{{if request.args(0)=='login':}}
<a href="{{=URL(r=request,args='register')}}">register</a><br />
<a href="{{=URL(r=request,args='retrieve_password')}}">lost password</a><br />
{{elif request.args(0)=='register' and PTCFG.tos==True:
    =P(T("By registering, I agree to the Terms of Service and accept the Privacy Policy shown below."))}}
<div class="legal">
{{#include 'termsofservice.html'}}
</div>
<div class="legal">
{{#include 'privacypolicy.html'}}
</div>

{{pass}}
